I have a newbie question. ( Sorry, I tried to look up various documents but I could not find the info).
What I want to do is to have my C++ program, which has the main(), call the Icon interpreter and let it process the provided data based on the external configuration (Icon program).
So the system would look like the following:
[data file in]--> [ My Main Process ] --> [Icon Interpreter]
[ ] | ^
[data file out]<-- [ ]<----------+ |
[Icon program]
Textual description:
A program, My Main Process has two file I/O: input & output.
Once the input data has been read in, it is massaged and passed to the Icon interpreter.
The Icon interpreter processes the data according to the external (external to My Main Process) configuration (Icon program) and returns the data to My Main Process.
The returned data is then written out to output data file.
I noticed that I can call C functions from Icon program, but can I call Icon from a C/C++ program?